<%@page import="models.CoordinaModel"%>
<%@page import="models.RouteModel"%>
<%@page import="models.StaffModel"%>
<%@page import="java.util.List"%>
<%@page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	List<StaffModel> listStaff = (List<StaffModel>) request.getAttribute("listStaff");
	List<RouteModel> listRoute = (List<RouteModel>) request.getAttribute("listRoute");
	CoordinaModel coordinaModel = (CoordinaModel) request.getAttribute("coordinaModel");
%>

<jsp:include page="/admin/layouts/header.jsp">
	<jsp:param name="language" value="1" />
</jsp:include>

<div class="maincontent noright">
	<div class="maincontentinner">
		<ul class="maintabmenu multipletabmenu">
			<li class="current"><a href="#">Điều phối</a></li>
		</ul>
		<!--maintabmenu-->

		<div class="content">
			<div class="contenttitle">
				<h2 class="form">
					<span>Chỉ định giao nhận</span>
				</h2>
			</div>
			<!--contenttitle-->

			<form method="post" action="#" class="stdform stdform2" id="edit_user_form">
				<p>
					<label>Tuyến</label> <span class="field"> <select
						class="radius3 action-value" name="routeId" disabled="disabled">
							<%
								for (int i = 0; i < listRoute.size(); i++) {
							%>
							<option value="<%=listRoute.get(i).getId()%>"
								<%=listRoute.get(i).getId().equalsIgnoreCase(coordinaModel.getRouteId()) ? "selected=\"selected\"" : ""%>><%=listRoute.get(i).getName()%></option>
							<%
								}
							%>
					</select>
					</span>
				</p>
				<p>
					<label>Mã tuyến</label> <span class="field"> <input
						type="text" class="smallinput" name="coordinaId" id="coordinaId" value="<%=coordinaModel.getId()%>" readonly="readonly">
					</span>
				</p>
				<p>
					<label>Nhân viên giao nhận</label> <span class="field"> 
					<select	class="radius3 action-value" name="staffCode">
							<%
								for (int i = 0; i < listStaff.size(); i++) {
							%>
							<option value="<%=listStaff.get(i).getCode()%>"><%=listStaff.get(i).getName()%></option>
							<%
								}
							%>
					</select>
					</span>
				</p>
				<p class="stdformbutton">
					<button class="submit radius2">Submit</button>
					<input type="reset" value="Reset Button" class="reset radius2">
				</p>
			</form>
			<br clear="all">
		</div>
		<!--content-->
	</div>
	<!--maincontentinner-->

	<jsp:include page="/admin/elements/copyright.jsp">
		<jsp:param name="language" value="1" />
	</jsp:include>

</div>
<jsp:include page="/admin/layouts/footer.jsp">
	<jsp:param name="language" value="1" />
</jsp:include>